package com.owc.common.lock.actuator;

import com.google.common.collect.ImmutableList;
import com.owc.common.converter.IExpressionActuator;
import com.owc.common.lock.LockModel;
import com.owc.filter.content.SecurityContextHolder;

/**
 * @Author xiaom
 * @Date 2020/3/16 11:15
 * @Version 1.0.0
 * @Description <>
 **/
public class DefaultActuator implements IExpressionActuator {
    @Override
    public String doExecute(LockModel lockModel) {
        return assembly(ImmutableList.of(SecurityContextHolder.getCurrentUserId() + ""),lockModel.getProxyMethod().getName());
    }
}
